package cn.edu.sgu.www.mhxysy.service.chongwu_equipment.impl;

import cn.edu.sgu.www.mhxysy.entity.chongwu_equipment.ChongwuEquipmentType;
import cn.edu.sgu.www.mhxysy.mapper.chongwu_equipment.ChongwuEquipmentTypeMapper;
import cn.edu.sgu.www.mhxysy.service.chongwu_equipment.ChongwuEquipmentTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 沐雨橙风ιε
 * @version 1.0
 */
@Service
public class ChongwuEquipmentTypeServiceImpl implements ChongwuEquipmentTypeService {

    private final ChongwuEquipmentTypeMapper chongwuEquipmentTypeMapper;

    @Autowired
    public ChongwuEquipmentTypeServiceImpl(ChongwuEquipmentTypeMapper chongwuEquipmentTypeMapper) {
        this.chongwuEquipmentTypeMapper = chongwuEquipmentTypeMapper;
    }

    @Override
    public List<ChongwuEquipmentType> selectAll() {
        return chongwuEquipmentTypeMapper.selectList(null);
    }

    @Override
    public ChongwuEquipmentType selectById(Integer id) {
        return chongwuEquipmentTypeMapper.selectById(id);
    }

}